﻿//
// VKSL - Visual Knowledge in Second Life
// 2007(c) CC License by-nc-sa-2.5-it
//
// Authors:
//     JonnyBee Cioc    jonny@vulca.no
//     VisionRaymaker   vision.raymaker@vulca.no

// ===[ LICENSE ]=======================================

// License Creative Commons Attribution-Noncommercial-Share Alike 2.5 Italy
// http://creativecommons.org/licenses/by-nc-sa/2.5/it/

// ===[ CHANGE LOG ]====================================
integer version_major    =  1;
integer version_minor    =  0;
integer version_revision = 13;

// 2007-12-07 v1.0.12
// + change title via linked MESSAGES

// 2007-12-07 v1.0.10
// + MESSAGES list as localizable resources
// + menu buttons list and indexing


// ===[ PUBLIC CONSTANTS ]=====================================
integer DEBUG                 = TRUE;
integer LINK_NUMBER           = LINK_SET;
string  SEPARATOR             = "|";

// default object's name
string  DEFAULT_NODE          = "NODE_";
string  DEFAULT_LINK          = "LINK_";
string  DEFAULT_MOVER         = "MOVER";

// channels
float   CHANNEL_TIMEOUT       = 60.0;
integer CHANNEL_COMMUNICATION = -999;

// map type
list    MAP_TYPES             = ["PRIVATE MAP","GROUP MAP","JOINABLE MAP","PUBLIC MAP"];
integer MAPTYPE_UNDEFINED     = -1;
integer MAPTYPE_PRIVATE       =  0; // dont change: this *must* be zero
integer MAPTYPE_GROUP         =  1;
integer MAPTYPE_JOINABLE      =  2;
integer MAPTYPE_PUBLIC        =  3;

// LINKED MESSAGE PUBLIC INTERFACE
// MODULE
integer MESSAGELINKED_RESET            = 0xFFFF;
integer MESSAGELINKED_MODULEREADY      = 0xFFFE;
integer MESSAGELINKED_VERSION          = 0xFFFD;
integer MESSAGELINKED_DEBUG            = 0xF000;

// ERROR
integer MESSAGELINKED_ERROR            = 0xE000;
integer MESSAGELINKED_LISTOVERFLOW     = 0xE001;
integer MESSAGELINKED_ILLEGALPARAM     = 0xE002;
integer MESSAGELINKED_TRUNCATEDMESSAGE = 0xE003;

// MENU DIALOG
integer MESSAGELINKED_DIALOG           = 0x2001;
integer MESSAGELINKED_DIALOGRESPONSE   = 0x2002;
integer PARAM_DIALOG_ID                = 0x2003;
integer PARAM_DIALOG_TITLE             = 0x2004;
integer PARAM_DIALOG_AVATAR            = 0x2005;
integer PARAM_DIALOG_CHANNEL           = 0x2006;
integer PARAM_DIALOG_BUTTON_ID         = 0x2007;

// HOVERTEXT
integer MESSAGELINKED_HOVERTEXT_SET    = 0x3000;
integer MESSAGELINKED_HOVERTEXT_UNSET  = 0x3001;
integer MESSAGELINKED_HOVERTEXT_TEXT   = 0x3002;
integer MESSAGELINKED_HOVERTEXT_COLOR  = 0x3003;
integer MESSAGELINKED_HOVERTEXT_ALPHA  = 0x3004;
integer PARAM_HOVERTEXT_TEXT           = 0x3005;
integer PARAM_HOVERTEXT_COLOR          = 0x3006;
integer PARAM_HOVERTEXT_ALPHA          = 0x3007;

// CHANNELS
integer MESSAGELINKED_LISTEN           = 0x4000;

// MAP
integer MESSAGELINKED_MAP              = 0xC000;

// MOVER
integer MESSAGELINKED_MOVER_OFFSET     = 0xC100;


// map message commands
// commands
integer CMD_MAP_PARAMS       = 0x8000;
integer CMD_OBJECTREZ        = 0x8001;
integer CMD_MAPTYPE          = 0x8002;
integer CMD_NEWNODE          = 0x8003;
integer CMD_NEWLINK          = 0x8004;
integer CMD_NEWMOVER         = 0x8005;
integer CMD_TOUCH            = 0x8006;
integer CMD_LINKCHANGE       = 0x8007;
integer CMD_CUTBRANCH        = 0x8008;
integer CMD_CLEAR            = 0x8009;
integer CMD_CLEARMAP         = 0x800A;
integer CMD_SAVE             = 0x800B;
integer CMD_SAVED            = 0x800C;
integer CMD_NODENUMBER       = 0x800D;
integer CMD_MOVE             = 0x800E;
integer CMD_USER             = 0x800F;
integer CMD_LINKUSER         = 0x8010;
integer CMD_NAME             = 0x8011;

// map command's params
integer PARAM_MAPKEY         = 0x8100;
integer PARAM_MAPNAME        = 0x8101;
integer PARAM_MAPTYPE        = 0x8102;
integer PARAM_MAPOWNER       = 0x8103;
integer PARAM_MAPNODECOUNT   = 0x8104;
integer PARAM_MAPLINKCOUNT   = 0x8105;
integer PARAM_PARENTKEY      = 0x8106;
integer PARAM_USERKEY        = 0x8107;
integer PARAM_USERNAME       = 0x8108;
integer PARAM_MOVERKEY       = 0x8109;
integer PARAM_LINKKEY        = 0x810A;
integer PARAM_LINKNAME       = 0x810B;
integer PARAM_NODEKEY        = 0x810C;
integer PARAM_NODEID         = 0x810D;
integer PARAM_NODENAME       = 0x810E;
integer PARAM_POSITION       = 0x810F;
integer PARAM_TITLE          = 0x8110;

// node menu ids
integer MENUID_SERVER_ALL      = 0x1000;
integer MENUID_SERVER_START    = 0x1001;
integer MENUID_SERVER_ADMIN    = 0x1002;
integer MENUID_SERVER_USER     = 0x1003;
integer MENUID_SERVER_RELEASE  = 0x1004;
integer MENUID_SERVER_REQUEST  = 0x1005;
integer MENUID_SERVER_PENDING  = 0x1007;
integer MENUID_SERVER_ALLOWED  = 0x1008;
integer MENUID_NODE_FIRSTNODE  = 0x1100;
integer MENUID_NODE_NEWNODE    = 0x1101;
integer MENUID_NODE_COLOR      = 0x1102;
integer MENUID_LINK            = 0x1200;
integer MENUID_LINK_COLOR      = 0x1201;

default
{

}

